﻿using smp.ButterflyCakes.Repository.Interfaces;

namespace smp.ButterflyCakes.Repository.Implementation
{
    public class Cache : ICache
    {
        #region Implementation of ICache

        public void AddTemp(string key, dynamic item)
        {
            CacheSingleton.Instance.AddTemp(key, item);
        }

        public dynamic GetTemp(string key)
        {
            return CacheSingleton.Instance.GetTemp(key, true);
        }

        public dynamic GetTemp(string key, bool destroy)
        {
            return CacheSingleton.Instance.GetTemp(key, destroy);
        }

        #endregion
    }
}
